package com.txc.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
public class User {
 //自增
 private int id;
 //用户名
 private String username;
 //密码
 private String pwd;
 //邮箱
 private String email;
 //权限：0为普通用户，1为管理员
 private int status;

 public User(String username, String pwd, String email) {
  this.username = username;
  this.pwd = pwd;
  this.email = email;
 }

 public User(int id, String userName, String pwd, String email) {
  this.id = id;
  this.username = userName;
  this.pwd = pwd;
  this.email = email;
 }
}

